.create-model-one {
    .ant-modal-content {
        .ant-modal-body {
            height: 720px;
            padding: 0;
            background-color: var(--color-item-background);

            .ant-spin-nested-loading {
                height: 100%;

                .ant-spin-container {
                    height: 100%;
                }
            }
        }
    }

}

.create-model {
    display: flex;
    height: 720px;



    .right {
        border-left: 1px solid var(--color-divider);
        flex: 1;
        background-color: white;
        min-width: 360px;
        flex-shrink: 0;
        .chat-name {
            // width: 100%;
            position: relative;
            padding-top: 24px;
            padding-left: 24px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--color-divider);
            font-size: 16px;
            margin-bottom: 24px;
            line-height: 20px;
            font-weight: 600;
            font-family: Inter;
            color: var(--color-text-primary);
        }

        .content {
            padding-left: 24px;
            border-bottom: 1px solid var(--color-divider);
            padding-bottom: 24px;

            .label3 {
                align-self: stretch;
                position: relative;
                margin-bottom: 8px;
                line-height: 1;
            }

            .modelproviderIcon {
                position: relative;
                width: 16px;
                height: 16px;
                overflow: hidden;
                flex-shrink: 0;
            }

            .openai {
                position: relative;
            }

            .modelproviderParent {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                margin-bottom: 24px;
                gap: 6px;
            }

            .chatCompletion {
                position: relative;
                line-height: 24px;
                font-weight: 500;
            }

       
        }

        .desc-info {
            font-size: 14px;
            font-family: Inter;
            color: #777;
            display: inline-block;
            padding-right: 24px;
        }

        .feature {
            padding-top: 24px;
            padding-left: 24px;

            .label3 {
                position: relative;
                font-size: 16px;
                line-height: 20px;
                font-weight: 600;
                font-family: Inter;
                color: var(--color-text-primary);
                text-align: left;
                margin-bottom: 8px;

            }

            .stream {
                position: relative;
            }

            .instanceChild {
                align-self: stretch;
                position: relative;
                border-right: 1px solid var(--color-divider);
                box-sizing: border-box;
                width: 1px;
            }

            .on {
                position: relative;
                color: var(--color-text-primary);
            }

            .streamParent {
                border-radius: 8px;
                border: 1px solid var(--color-divider);
                box-sizing: border-box;
                height: 24px;
                line-height: 15px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                padding: 0px 4px;
                gap: 3px;
            }

            .instanceParent {
                width: 100%;
                position: relative;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: flex-start;
                gap: 6px;
                text-align: left;
                font-size: 12px;
                color: #777;
                font-family: Inter;
            }


        }
    }

    .center {
        width: 920px;
        overflow: hidden;
        padding-top: 24px;
        height: 696px;
        margin: 0;
        // padding-left: 24px;
        position: relative;

        .ant-spin-nested-loading {
            .ant-spin-container {

                .img-model {
                    height: 580px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        .ant-pagination {
            // position: absolute;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: center;
            align-items: center;
            // bottom: 24px;
            left: 0;
            right: 0;

        }
    }

    .label {
        position: relative;
        line-height: 20px;
        font-weight: 600;
    }

    .inputWithLabel1 {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        font-size: 16px;
        color: var(--color-text-primary);
        font-family: Inter;
        margin-left: 24px;
    }

}

.card-map::-webkit-scrollbar {
    display: none;
}

.card-map {
    margin: 24px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    flex-wrap: wrap;
    height: 652px !important;
    overflow: auto;
    padding-left: 24px;
    padding-top: 2px;
    padding-bottom: 24px;
    padding-right: 24px;

    .modelproviderIcon {
        position: relative;
        width: 16px;
        height: 16px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .openaigpt4 {
        position: relative;
        font-weight: 500;
    }

    .modelproviderParent {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
    }

    .frameDiv {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .frameWrapper {
        align-self: stretch;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .providermodelcardInner {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .desc {
        height: 78px;

        span {
            color: #777;
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            // line-height: 1em;
            line-height: 18px;
        }
    }

    .chatCompletion {
        position: relative;
        line-height: 16px;
        font-weight: 400;
        font-size: 12px;
        color: #777;
        border: 1px solid #e4e4e4;
        padding: 0 6px;
        border-radius: 8px;
    }

    .frameIcon1 {
        position: relative;
        width: 24px;
        height: 24px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .chatCompletionParent {
        align-self: stretch;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        color: #777;
    }

    .providermodelcard {
        border-radius: 5px;
        border: 1px solid #e4e4e4;
        background-color: white;
        box-sizing: border-box;
        width: 48%;
        margin-bottom: 24px;
        height: 88px;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 12px;
        gap: 5px;
        // height: 120px;
        text-align: left;
        font-size: 14px;
        color: var(--color-text-primary);
        font-family: Inter;
    }

    .providermodelcard:hover {
        background-color: #FAFAFA;
        cursor: pointer;

        .anticon {
            transform: translateX(5px);
            transition: transform 0.3s ease;
        }
    }

    .providermodelcard:not(:hover) .anticon {
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .providermodelcardInner1 {
        // border: 2px solid var(--color-primary);
        outline: 2.5px solid #087443;
    }

}

.ant-pagination {
    height: 60px;
}

.second-form {
    padding: 0 24px;
    margin-bottom: 16px;

    .form-item {
        margin-bottom: 0;
    }

    .ant-form-item-control-input {
        height: auto;

        .ant-form-item-control-input-content {
            height: auto;
        }
    }

    #AZURE_OPENAI_API_KEY {
        height: 100%;
    }

    .description {
        width: 100%;
        position: relative;
        font-size: 14px;
        line-height: 1;
        font-family: Inter;
        color: #777;
        margin-bottom: 8px;
        text-align: left;
        display: inline-block;
    }
}

.ant-modal-wrap {
    overflow: hidden !important;
}

.modal-content {
    .ant-modal-content {
        // max-height: 800px;

        // overflow: auto;

        .ant-modal-body {
            max-height: 660px;
            padding: 0px;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            background-color: var(--color-item-background);



            .second-modals {
                background-color: var(--color-item-background);
                overflow: hidden;

                .base-model {
                    font-size: 16px;
                    font-weight: 400;
                    margin-left: 24px;
                }

                .input-form {
                    // height: 130px;
                    padding: 0 24px;

                    .ant-form-item {
                        // height: 100%;

                        .ant-form-item-row {
                            // height: 100%;
                            flex-wrap: wrap !important;
                            width: 100%;

                            // .ant-form-item-control-input {
                            //     height: 100%;

                            //     .ant-form-item-control-input-content {
                            //         height: 100% !important;
                            //     }
                            // }
                        }
                    }

                    .ant-form-item-required {
                        font-size: 16px;
                    }
                }


                .hr {
                    position: relative;
                    // width: 100%;

                    height: 1px;
                    margin-top: 24px;
                    background-color: #eee;
                    line-height: 1;
                }

                .frameParent {
                    align-self: stretch;
                    display: flex;
                    flex-direction: row;
                    align-items: flex-start;
                    justify-content: flex-start;
                    margin: 6px 0 20px 0 !important;
                    padding: 0 24px;
                }

                .input {
                    width: 100%;
                    margin-bottom: 10px;
                }

                .basicInformation {
                    position: relative;
                    font-size: 18px;
                    line-height: 32px;
                    font-family: Inter;
                    color: var(--color-text-primary);
                    text-align: left;

                }

                .label {
                    position: relative;
                    font-size: 16px;
                    line-height: 20px;
                    font-weight: 600;
                    font-family: Inter;
                    padding: 0 24px;
                    color: var(--color-text-primary);
                    text-align: left;
                }

                .modelproviderIcon {
                    position: relative;
                    width: 18px;
                    height: 18px;
                    overflow: hidden;
                    flex-shrink: 0;
                }

                .openai {
                    position: relative;
                    font-weight: 500;
                }

                .modelproviderParent {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-start;
                    gap: 5px;
                }

                .frameParent {
                    flex: 1;
                    width: 100%;
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: flex-start;
                    text-align: left;
                    font-size: 14px;
                    color: var(--color-text-primary);
                    font-family: Inter;
                }

                .label-name {
                    position: relative;
                    font-size: 16px;
                    line-height: 20px;
                    font-weight: 600;
                    font-family: Inter;
                    text-align: left;
                    color: var(--color-text-primary);

                    .span {
                        color: var(--color-negative);
                    }
                }

                .label-desc {
                    // width: 100%;
                    position: relative;
                    font-size: 14px;
                    line-height: 20px;
                    font-family: Inter;
                    color: #777;
                    line-height: 1;
                    text-align: left;
                    padding: 0 24px;
                    display: inline-block;
                }

                .credentials {
                    position: relative;
                    font-size: 18px;
                    line-height: 32px;
                    font-family: Inter;
                    color: var(--color-text-primary);
                    text-align: left;
                    line-height: 1;
                    padding: 0 24px;
                    margin-top: 24px;
                    margin-bottom: 18px;
                    display: block;
                }

                .inputWithLabel1 {
                    flex: 1;
                    width: 100%;
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: flex-start;
                    gap: 8px;
                    text-align: left;
                    font-size: 16px;
                    color: var(--color-text-primary);
                    font-family: Inter;

                    .span {
                        font-weight: 600;
                        color: var(--color-negative);
                    }

                    .label {
                        position: relative;
                        line-height: 20px;
                    }

                    .label1 {
                        align-self: stretch;
                        position: relative;
                        font-size: 14px;
                        line-height: 20px;
                        color: #777;
                    }
                }
            }
        }
    }
}

.ant-form-item {
    margin-bottom: 20px;
}

.ant-form-item.switch {
    margin-bottom: 0;

}

.switch {
    height: 20px;

    .ant-row {
        height: 20px;

        .ant-form-item-control-input {
            min-height: 20px !important;
        }
    }
}

.create-models {
    .ant-modal-body {
        padding: 0;
        background-color: var(--color-item-background);
    }

    .content {
        display: flex;
        height: 720px;

        .left {
            width: 920px;
            // border-right: 1px solid var(--color-divider);
            padding: 24px 0 0px 0px;
            overflow: hidden;

            .title {
                position: relative;
                font-size: 16px;
                line-height: 20px;
                font-weight: 600;
                padding-left: 24px;
                color: var(--color-text-primary);
                text-align: left;
            }

            .content-parent {
                height: 676px;
                overflow: auto;

            }

            .content-parent::-webkit-scrollbar {
                display: none;
            }

            .content-list {
                // height: 652px;
                padding-left: 24px;
                // border-bottom: 1px solid var(--color-divider);
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(274px, 1fr));
                gap: 24px;
                align-items: start;
                // margin: -12px;
                padding-top: 24px;
                // flex-wrap: wrap;
                // align-content: flex-start;
                // justify-content: space-between;
                padding-right: 24px;
                overflow: auto;
                padding-bottom: 24px;

                @media (max-width: (274px * 3 + 24px * 2)) {
                    .content-list {
                        grid-template-columns: repeat(auto-fit, minmax(274px, 1fr));
                    }
                }

                .openai-card {
                    // min-width: 289px;
                    // width: calc((100% - 72px)/4);
                    height: 112px;
                    padding: 12px;
                    background-color: white;
                    position: relative;
                    border: 1px solid var(--color-divider);
                    border-radius: 8px;
                    box-sizing: border-box;
                    cursor: pointer;
                    // margin-right: 24px;
                    // margin-bottom: 24px;

                    .card-top {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin-bottom: 12px;

                        .provider {
                            display: flex;
                            align-items: center;

                        }
                    }

                    .desc {
                        height: 78px;

                        span {
                            color: #777;
                            font-size: 14px;
                            display: -webkit-box;
                            -webkit-line-clamp: 3;
                            line-clamp: 3;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            // line-height: 1em;
                            line-height: 18px;
                        }
                    }

                    .choices {
                        font-size: 14px;
                        bottom: 12px;
                        color: #777;
                        // position: absolute;
                    }

                    .chat-text-type {
                        padding-top: 12px;

                        .type-single {
                            color: #777;
                            font-size: 12px;
                            border-radius: 8px;
                            border: 1px solid var(--color-divider);
                            padding: 2px 6px;
                        }
                    }
                }

                .openai-card:hover {
                    background-color: #FAFAFA;
                    cursor: pointer;
                }

                .select-provider {
                    outline: 2.5px solid #087443;
                }

                // padding: 24px 24px 14px 0;
            }

            .content-list::-webkit-scrollbar {
                display: none;
            }
        }

        .right {
            border-left: 1px solid var(--color-divider);
            flex: 1;
            background-color: white;

            min-width: 360px;
            flex-shrink: 0;
 
            .chat-name {
                // width: 100%;
                position: relative;
                padding-top: 24px;
                padding-left: 24px;
                padding-bottom: 24px;
                border-bottom: 1px solid var(--color-divider);
                font-size: 16px;
                margin-bottom: 24px;
                line-height: 20px;
                font-weight: 600;
                font-family: Inter;
                color: var(--color-text-primary);
            }



            .label3 {
                align-self: stretch;
                position: relative;
                margin-bottom: 8px;
                margin-left: 24px;
                line-height: 1;
            }

            .desc-info {
                font-size: 14px;
                font-family: Inter;
                color: #777;
                display: inline-block;
                margin-left: 24px;

                padding-right: 24px;
                // margin-bottom: 24px;
            }
            .resources-list {
                border-top: 1px solid var(--color-divider);
                padding: 24px;
                .resource {
                    font-size: 14px;
                    color: #2b2b2b;
                }
                .list {
                    margin-top:8px;
                    .item {
                        display: flex;
                        align-items: center;
                        margin-bottom: 6px;

                        a {
                            color: #777;
                            font-size: 14px;
                            margin-left:4px;
                        }
                    }
                }
            }
        }
    }
}